package
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display3D.Context3D;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	import starling.core.RenderSupport;
	import starling.core.Starling;
	import starling.display.DisplayObject;
	import starling.display.Sprite;
	import starling.events.Event;
	
	public class Game extends Sprite
	{
		public var entityLevel:Sprite;
		public var waterLevel:Sprite;
		public function Game()
		{
			super();
			addEventListener(Event.ADDED_TO_STAGE,addToStage);
		}
		
		private function addToStage(e:Event):void
		{
			removeEventListener(Event.ADDED_TO_STAGE,addToStage);
			entityLevel=new Sprite();
			addChild(entityLevel);
			
			waterLevel=new Sprite();
			addChild(waterLevel);
			
		}
		
		public function addEntityLevel(player:DisplayObject):void
		{
			entityLevel.addChild(player);
		}
		
		public function addWaterLevel():void
		{
			
		}
	}
}